package com.wanghua.mall.product.openfeign;

import com.wanghua.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author wanghua
 * @create 2021-08-27 10:22
 */
@FeignClient("mall-ware")
public interface WareFeignClient {

    //查询sku是否有库存 TODO 也可以封装实体类或使用map
    @PostMapping("ware/waresku/getStockBySku")
    R getStockBySku(@RequestBody List<Long> skuIdList);
}
